Skip to content

Conversation

@xDimon
Copy link
Member

@xDimon xDimon commented Jun 16, 2025

Init state of synchronizing and networking modules

xDimon added 2 commits June 16, 2025 00:00
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon requested review from iceseer and turuslan June 16, 2025 06:36
@kamilsa kamilsa requested a review from Copilot June 16, 2025 06:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Initial setup for synchronizing and networking modules

  • Add core and stub types in jam_types, including request/response attributes
  • Integrate and register NetworkingLoader and SynchronizerLoader in the injector
  • Extend CLI/configuration with base_path and modules_dir support and validation

Reviewed Changes

Copilot reviewed 68 out of 68 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/jam_types/types.tmp.hpp Define stub types, block types, enums, bit-masks, and formatters
src/injector/node_injector.hpp/.cpp Remove old forward decl, bind new loaders, refactor dispatcher scope
src/executable/jam_node.cpp Switch to dynamic modulesDir(), handle unsupported loaders, remove unused includes
src/crypto/*.hpp Replace qtils::BytesN with qtils::ByteArr in all crypto type aliases
src/app/impl/state_manager_impl.* Migrate from shared_ptr to qtils::SharedRef for logging
src/app/impl/application_impl.* Migrate to qtils::SharedRef, simplify metrics setup via GaugeHelper
src/app/configurator.hpp/.cpp Add base_path/modules_dir CLI options, parse/validate YAML, error reporting
src/app/configuration.hpp/.cpp Add getters for basePath() and modulesDir()
src/app/CMakeLists.txt Link qtils::qtils to state manager
src/CMakeLists.txt Broaden include directories to source and generated paths
scripts/asn1.py Update codegen templates to use ByteArr/ByteVec instead of BytesN/Bytes
example/config.yaml Add base_path and modules_dir examples; tweak logging levels and module groups
Comments suppressed due to low confidence (4)

src/jam_types/types.tmp.hpp:51

  • The enum member name _MASK uses a leading underscore with capital letters, which is reserved by C++. Consider renaming it to kMask or Mask to follow identifier conventions and avoid UB.
_MASK = 0b11111,

src/app/configurator.hpp:89

  • [nitpick] CLI option names with underscores (e.g. --base_path) are unconventional; consider using hyphenated flags (e.g. --base-path) to match POSIX conventions.
("base_path", po::value<std::string>(), "Set base path. All relative paths will be resolved based on this path.")

src/app/configuration.hpp:27

  • [nitpick] Public API method basePath() is undocumented. Please add a brief doc comment explaining what path this returns and its intended use.
[[nodiscard]] std::filesystem::path basePath() const;

src/injector/node_injector.cpp:126

  • [nitpick] The new branches for NetworkingLoader and SynchronizerLoader in the loader registration logic aren't covered by unit tests. Consider adding tests to validate correct loader selection and error handling.
else if ("NetworkingLoader" == module->get_loader_id()) {

@xDimon xDimon force-pushed the feature/basic_modules branch from a9a7074 to b65e1c2 Compare June 16, 2025 07:11
xDimon added 9 commits June 16, 2025 15:30
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>

# Conflicts:
#	src/executable/jam_node.cpp
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>

# The commit message #2 will be skipped:

# + base
#
# Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>

# Conflicts:
#	src/modules/CMakeLists.txt
#	src/se/subscription_fwd.hpp
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon force-pushed the feature/basic_modules branch from b65e1c2 to 047349a Compare June 16, 2025 12:37
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon force-pushed the feature/basic_modules branch from c1e3862 to cb44aa1 Compare June 17, 2025 11:48
@xDimon xDimon merged commit 43a6950 into master Jun 17, 2025
1 of 2 checks passed
@xDimon xDimon deleted the feature/basic_modules branch June 17, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants